﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Interface;
using Lamex.Library.CommonClass;

namespace Lamex.mResource.UI
{
    public partial class frmRES_Main : frmModuleBase
    {
        public frmRES_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mResource; //与AssemblyModuleEntry.ModuleName定义相同
        }
        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        private void menuRES_LMX_BulletinBoard_Click(object sender, EventArgs e)
        {
            string strWebPath = @"http://lamexnet/SitePages/Home.aspx";
            //嵌入式，框架窗体            
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmWebForm(strWebPath, "公告栏"), sender as ToolStripMenuItem);
        }

        private void menuRES_LMX_WebSite_Click(object sender, EventArgs e)
        {
            string strWebPath = @"https://www.lamex.com/zh-hans";
            //嵌入式，框架窗体            
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmWebForm(strWebPath, "LAMEX"), sender as ToolStripMenuItem);
        }

    }
}